
package com.work.jaxb.menu;

import javax.xml.bind.annotation.*;

import com.vaadin.server.ThemeResource;

@XmlType(name = "propertyType")
@XmlEnum
public enum XmlPropertyEnum {

	@XmlEnumValue("NAME")
	NAME("name", String.class),
	
	@XmlEnumValue("ICON")
	ICON("icon", ThemeResource.class);

	private XmlPropertyEnum(String value, Class<?> type)
	{
		this.value = value;
		this.type = type;
	}

	private String value;
	private Class<?> type;
	
	public String getValue()
	{
		return value;
	}
	public void setValue(String value)
	{
		this.value = value;
	}
	public Class<?> getType()
	{
		return type;
	}
	public void setType(Class<?> type)
	{
		this.type = type;
	}

	
}
